﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;

public partial class Control_labelWidthTextBox : System.Web.UI.UserControl
{

    [Description("設定Label顯示名"), Category("MISAPP"), DefaultValue("")]
    public string Caption
    {
        set
        {
            lblCaption.Text = value;
        }
        get
        {
            return lblCaption.Text;
        }
    }

    [Description("設定TextBox 的顯示方式"), Category("MISAPP"), DefaultValue(0)]
    public TextBoxMode TextMode
    {
        set
        {
            txtValue.TextMode = value;
        }
    }



    protected void Page_Load(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// 設定TextBox 中的 Text
    /// </summary>
    /// <param name="p_value"></param>
    public void SetValue(string p_value)
    {
        txtValue.Text = p_value;
    }
}
